package com.sunchen.asc.service.item.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="法律依据对象",description="法律依据basis")
public class BasisVo implements Serializable {

    //private Long id;

    @ApiModelProperty(value="绑定事项",name="itemId")
    @NotNull(message = "不能为空")
    private Long itemId;

    @ApiModelProperty("文号")
    private String code;

    @ApiModelProperty(value="名称",name="name")
    @NotEmpty(message = "不能为空")
    private String name;
    
    @ApiModelProperty("发文单位")
    private String unitName;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("附件id")
    private String fileId;

    @ApiModelProperty("附件名称")
    private String fileName;

    @ApiModelProperty("类型(法律、行政法规、地方性法规、部门规章、政府规章、规范性文件)")
    private String type;

    @ApiModelProperty("排序")
    private int sortOrder;

    public BasisVo() {
    }

    public BasisVo(Long id, Long itemId, String code, String name, String unitName, String content, String fileId, String fileName, String type, int sortOrder) {
        //this.id = id;
        this.itemId = itemId;
        this.code = code;
        this.name = name;
        this.unitName = unitName;
        this.content = content;
        this.fileId = fileId;
        this.fileName = fileName;
        this.type = type;
        this.sortOrder = sortOrder;
    }
}
